extends ItemList

onready var scrollbar = get_child(0)

func _ready():
	set_process_input(true)

func _input(event):
	var value = scrollbar.get_value()
	if event.type == InputEvent.SCREEN_DRAG:
		if !get_rect().has_point(event.pos):
			return
		scrollbar.set_value(value - event.relative_y)
		accept_event()
